package com.example.demo.ai.qwen;

import cn.hutool.ai.core.BaseConfig;
import com.example.demo.ai.AiModels;

/**
 * @ClassName QwenConfig
 * @Description:
 * @Author: hgq
 * @CreateDate: 2025/5/13 16:20
 * @UpdateUser: hgq
 * @UpdateDate: 2025/5/13 16:20
 * @UpdateRemark:
 * @Version: 1.0
 */
public class QwenConfig extends BaseConfig {
    private final String API_URL = "https://dashscope.aliyuncs.com/compatible-mode/v1";
    private final String DEFAULT_MODEL = AiModels.Qwen.QWEN_MAX.getModel();

    private QwenConfig() {
        this.setApiUrl(this.API_URL);
        this.setModel(this.DEFAULT_MODEL);
    }

    public QwenConfig(String apiKey) {
        this();
        this.setApiKey(apiKey);
    }

    public QwenConfig(String modelName, String apiKey) {
        this(apiKey);
        this.setModel(modelName);
    }

    public String getModelName() {
        return this.DEFAULT_MODEL;
    }
}
